﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcGuiTaiLieuHocVien.ascx.cs" Inherits="STT.Profile.UserControlsGV.UcGuiTaiLieuHocVien" %>
<div id="biography" class="page home">
    <div style="width:90%">
         <div class="row" >
            <div class="col-md-7">
            <h1 class="title"><span id="ctl02_DtlIndex_Label1_0">Danh sách tài liệu đã gửi</span></h1>
            </div>                                 
        </div>
        <asp:Panel ID="pnbangdiem" runat="server" Visible="true">
       <%-- <div class="row" >
            <div class="col-md-7">
             <h4><asp:Label ID="lblbangdiem" runat="server" Text="Danh sách tài liệu đã gửi" Visible="true"></asp:Label></h4>
            </div>                                 
        </div>--%>
        <div>
         <asp:GridView ID="gvDSTaiLieu" runat="server" CssClass="table table-bordered table-hover"
                AutoGenerateColumns="False" DataKeyNames="MaTL" AllowPaging="True" OnRowDataBound="gvDSTaiLieu_RowDataBound"
                 OnPageIndexChanging="gvDSTaiLieu_PageIndexChanging" PageSize="10" >
                <Columns>
                    <asp:TemplateField HeaderText="Số thứ tự" 
                        SortExpression="SoThuTu">
                        <ItemTemplate>
                           <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="TieuDeGui" HeaderText="Tiêu đề gửi"
                        ReadOnly="True" SortExpression="MaHocVien"
                        ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:BoundField>
                     <asp:TemplateField HeaderText="Tên tài liệu"
                        SortExpression="TenTaiLieu">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" 
                                Text='<%# Eval("TenTL").ToString()%>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span2" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày gửi" 
                        SortExpression="NgayGui">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" 
                                Text='<%#  DataBinder.Eval(Container.DataItem, "[NgayGui]", "{0:MM/dd/yyyy}") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tên lớp" 
                        SortExpression="TenLop">
                        <ItemTemplate>
                            <asp:Label ID="lblchucvutronglop" runat="server" Text='<%# Eval("TenLop") %>' Visible="true"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <br />
    </asp:Panel>
        <div class="row" style="margin-top:10px;margin-bottom:20px">
             <div class="col-md-7" align="center">
                 <asp:Table ID="Table1" runat="server">
                     <asp:TableRow>
                         <asp:TableCell>
                              Chọn lớp học:
                         </asp:TableCell>
                         <asp:TableCell CssClass="dropdl">
                               <asp:DropDownList ID="ddllophoc" runat="server" CssClass="dropdl form-control" ></asp:DropDownList>
                         </asp:TableCell>
                     </asp:TableRow>
                     <asp:TableRow>
                         <asp:TableCell>
                             Chọn file tài liệu 
                         </asp:TableCell>
                         <asp:TableCell CssClass="dropdl">
                             <asp:FileUpload ID="FileTaiLieu" runat="server" />
                         </asp:TableCell>
                     </asp:TableRow>
                      <asp:TableRow>
                         <asp:TableCell>
                            Nội dung gửi tài liệu 
                         </asp:TableCell>
                         <asp:TableCell CssClass="dropdl">
                             <asp:TextBox ID="txtndtl" runat="server" CssClass="form-control" TextMode="MultiLine" Height="50px"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtndtl" ValidationGroup="guitl" runat="server" ErrorMessage="*" ForeColor="Red" Font-Bold="true" ToolTip="Bạn chưa nhập nội dung tài liệu"></asp:RequiredFieldValidator>
                         </asp:TableCell>
                     </asp:TableRow>
                      <asp:TableRow>
                         <asp:TableCell>
                             Tên file tài liệu 
                         </asp:TableCell>
                         <asp:TableCell CssClass="dropdl">
                              <asp:TextBox ID="txttenfile" runat="server" CssClass="form-control"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txttenfile" ValidationGroup="guitl" runat="server" ErrorMessage="*" ForeColor="Red" Font-Bold="true" ToolTip="Bạn chưa nhập tên tài liệu"></asp:RequiredFieldValidator>
                         </asp:TableCell>
                     </asp:TableRow>
                     <asp:TableRow>
                         <asp:TableCell></asp:TableCell>
                         <asp:TableCell> 
                              <asp:Button ID="btnguitailieu" ValidationGroup="guitl" CssClass="btn btn-info" runat="server" Text="Gửi tài liệu" OnClick="btnguitailieu_Click" />
                         </asp:TableCell>
                     </asp:TableRow>
                 </asp:Table>
                   <br />            
             </div>
        </div>
        </div>
 </div>